package com.trendata.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trendata.dao.IShopDao;
import com.trendata.domain.Shop;

@Service("shopService")
public class ShopService {

	@Autowired
	private IShopDao shopDao;

	public void insert(Shop shop) {
		shopDao.insert(shop);
	}

	public int deleteByOpenId(long openId) {
		return shopDao.deleteByOpenId(openId);
	}

	public void update(Shop shop) {
		shopDao.update(shop);
	}

	public Shop selectByOpenId(long openId) {
		return shopDao.selectByOpenId(openId);
	}

	public Shop selectByTicket(String ticket) {
		return shopDao.selectByTicket(ticket);
	}
}
